import {loginStore} from "@/store/modules/loginStore.js";

// 获得登录的 store
const tempLoginStore = loginStore()
// 监听当前的语言,变动时执行传入的操作
export const watchLanguage = (...args) => {
    watch(() => tempLoginStore.language, () => {
        args.forEach(item => item())
    }, {deep: true})
}